package com.luminary.demo.user;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.test.context.junit4.SpringRunner;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = UserApplication.class)
public class PasswordGenerator {

	@Autowired
	private PasswordEncoder passwordEncoder;
	
	@Test
	public void generate() {
		log.info(passwordEncoder.encode("123456"));
	}
	
}
